package com.test.fanshe;

import com.example.entity.CarEntity;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public class FanXing<T> {
}

  class Fan extends FanXing<CarEntity>
{
    public static void main(String[] args) {
        ParameterizedType pt = (ParameterizedType) Fan.class.getGenericSuperclass();
        Type type = pt.getActualTypeArguments()[0];
        System.out.println(type);
        Class t = (Class) type;
    }
}
